using System;
using System.Collections.Generic;
using System.Text;

namespace DailyReport.Core.Data.Model
{
    public class ModelObject<IdT>
    {
        private IdT id = default(IdT);
        int version;

        public IdT ID
        {
            get { return id; }
            set { id = value; }
        }

        public int Version
        {
            get { return version; }
            set { version = value; }
        }

        public bool IsTransient()
        {
            return ID == null || ID.Equals(default(IdT));
        }

    }
}
